package com.wnxy.sddfp.bank;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@ComponentScan({"com.wnxy.sddfp.common","com.wnxy.sddfp.bank"})
@MapperScan("com.wnxy.sddfp.bank.mapper")
public class BankAccessApplication {
    public static void main(String[] args) {
        SpringApplication.run(BankAccessApplication.class, args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}